package com.service.Impl;

import com.dao.UNewsReadDao;
import com.service.UNewsReadService;

public class UNewsReadServiceImpl implements UNewsReadService {

    private UNewsReadDao uNewsReadDao;

    public UNewsReadServiceImpl(){}
    public UNewsReadServiceImpl(UNewsReadDao uNewsReadDao) {
        this.uNewsReadDao = uNewsReadDao;
    }

    @Override
    public int selectCountByUser_idAndNews_id(int user_id, int news_id) {
        return uNewsReadDao.selectCountByUser_idAndNews_id(user_id,news_id);
    }

    @Override
    public void insertUNewsRead(int user_id, int news_id) {
        uNewsReadDao.insertUNewsRead(user_id,news_id);
    }

    public UNewsReadDao getuNewsReadDao() {
        return uNewsReadDao;
    }

    public void setuNewsReadDao(UNewsReadDao uNewsReadDao) {
        this.uNewsReadDao = uNewsReadDao;
    }
}
